package com.yx.elastic.elasticcm.config;

/**
 * Created by chenzp on 18-7-30.
 * 结果集对象
 */
public class MResult {

    //业务处理是否成功
    private boolean status = true;

    //响应信息
    private String message;

    //状态码
    private int code = 200;

    //响应体数据
    private Object resData;

    public MResult() {
    }

    public MResult(boolean status, String message) {
        this.status = status;
        this.message = message;
    }

    public MResult(Object resData) {
        this.resData = resData;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getResData() {
        return resData;
    }

    public void setResData(Object resData) {
        this.resData = resData;
    }
}
